MenuItem.Count Function

Returns as an Integer the number of menuitems. For a menu item, it returns the number of submenu items, if any.

Syntax

result = MenuItem.Count( )

Return Value

Result

Integer

Notes

If there are no submenu items, it returns zero.